package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * <p>
 * 设备信息（采购）
 * </p>
 *
 * @author adrian
 * @since 2023-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sto_device")
@ApiModel(value = "StoDevice对象", description = "设备信息（采购）")
public class StoDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备编号")
    @TableId(value = "device_id", type = IdType.INPUT)
    private String deviceId;

    @ApiModelProperty("用于采购录入使用")
    private String impId;

    @ApiModelProperty("设备类型（	ZUJIAN：组件，	NBQ：逆变器，	CJQ：采集器，	PDX：配电箱，	ZLDL、直流电缆，	ZHIJIA：支架）")
    private String deviceType;

    @ApiModelProperty("多种情形：	1、设备入库，更新为入库的仓库id	2、设备出库，未入库，运输中：TRANS+出库单号	3、现场扫码收货：ROS+订单id	4、设备已经安装了：INST+订单id")
    private String stoId;

    @ApiModelProperty("厂家编号")
    private String manufacturerNumber;

    @ApiModelProperty("厂家名称")
    private String manufacturer;

    @ApiModelProperty("供应商")
    private String supplier;

    @ApiModelProperty("采购方式")
    private String purchaseType;

    @ApiModelProperty("规格型号")
    private String specificationsModel;

    @ApiModelProperty("规格")
    private String specs;

    @ApiModelProperty("组件功率(W)")
    private Integer modulePower;

    @ApiModelProperty("单价（元）")
    private BigDecimal unitPrice;

    @ApiModelProperty("设备数量")
    private Double amount;

    @ApiModelProperty("影像信息（组件条码照片）")
    private String images;

    @ApiModelProperty("材质")
    private String material;

    @ApiModelProperty("单位（个/台/块 - 英文/中文）")
    private String unit;

    @ApiModelProperty("扩展设备属信息")
    private String expendInfo;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("厂家简称")
    private String manufacturerShortName;

    @ApiModelProperty("厂家简码")
    private String manufacturerShortCode;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
